package net.wisos.opn.test;

import javax.sql.DataSource;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import com.wistech.commons.test.data.DataFixtures;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "/applicationContext.xml" })
public class InitData {
	@Autowired
	private DataSource dataSource;

	@Test
	public void initData() throws Exception {
		DataFixtures.reloadData(dataSource, "/data/sample-data.xml");
	}
}
